﻿using System;
using System.ServiceModel;
using LinFu.IoC.Configuration;

namespace CoreEx.Wcf.Common.Implementation
{    
    [Implements(typeof(IServiceContractResolver))]
    public class DefaultServiceContractResolver : IServiceContractResolver
    {        
        public bool IsServiceContract(Type type)
        {
            //return type.IsDefined(typeof (ServiceContractAttribute),true);
            return type.Namespace.Contains("ServiceFacade");
        }
    }
}
